//
//  TXHRulerScrollView.h
//  PrettyRuler
//
//  Created by GXY on 15/12/11.
//  Copyright © 2015年 Tangxianhai. All rights reserved.
//

#import <UIKit/UIKit.h>

#define LONGLENGTH 20.0f  // 标线长度
#define DISTANCELEFTANDRIGHT 20.f // 标尺左右距离
#define DISTANCEVALUE 7.f // 每隔刻度实际长度8个点
#define DISTANCETOPANDBOTTOM 10.f // 标尺尺头距离

@interface TXHRulerScrollView : UIScrollView

@property (nonatomic) NSUInteger rulerCount;

@property (nonatomic) CGFloat rulerAverage;

@property (nonatomic) NSUInteger rulerHeight;

@property (nonatomic) NSUInteger rulerWidth;

@property (nonatomic) CGFloat rulerValue;

@property (nonatomic) BOOL mode;

- (void)drawRuler;
@end
